package com.cdzt.hqse.service.impl;

import com.cdzt.hqse.dao.HeroMapper;
import com.cdzt.hqse.entity.Hero;
import com.cdzt.hqse.service.HeroService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author: heroC
 * @time: 2020/10/5 11:38
 */
@Service
public class HeroServiceImpl implements HeroService {

    @Autowired
    private HeroMapper heroMapper;

    /**
     * 查询Test表中的所有没有被删除的数据
     * @return
     */
    @Override
    public List<Hero> getTestInfo() {
        List<Hero> heroList = heroMapper.getNotDeleteInfo();
        return heroList;
    }
}
